package com.yanliang.mockTest.dao;

import com.yanliang.mockTest.User;

import java.util.List;

/**
 * user dao接口
 *
 * @Author : yanliang
 * @Data : 3/25/2020 5:41 PM
 */
public interface IUserDao {

    //查询所有用户
    public List<User> selectList() throws Exception;

    //根据条件进行用户查询
    public User selectOne(User user) throws Exception;

    public int insert(User user) throws Exception;

    public int update(User user) throws Exception;

    public int delete(int id) throws Exception;

}
